package com.mindmac.eagleeye.uts;

import com.alibaba.fastjson.JSON;

import java.util.HashMap;

/**
 * @author GeJianYe
 * @date 2021/8/16
 * Description:
 * Function:
 * @since 2021/8/16
 */
public class Targets {
    static {
        init();
    }
    public static final String AXLZY = "com.zygame.axlzy.aligames";


    public static final HashMap<String, AppInfos> APPS = new HashMap<String, AppInfos>();

    public static void init() {
        AppInfos value = new AppInfos();
        value.setPackageName(AXLZY);
        APPS.put(AXLZY, value);
        L.d("HOOK初始化");
    }

    public static AppInfos getByTarget(String target) {
        if (AXLZY.equals(target)){
            throw new RuntimeException("异常");
            /*AppInfos value = new AppInfos();
            value.setPackageName(AXLZY);
            return value;*/
        }
        return null;
    }


    public static class AppInfos {
        private String packageName;

        public String getPackageName() {
            return packageName;
        }

        public void setPackageName(String packageName) {
            this.packageName = packageName;
        }
    }
}
